home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
adjust_hsv.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
647b
|
27 lines
/*
* Adjust_HSB.ifx.pre
* PreScript for adjusting Hue, Saturation, and Brightness.
* Saves the parameters into the ImpAdjustHSBParameters
* clip variable.
*
* by Steve Tibbett
*/
options results
Defaults=GetClip("ImpAdjustHSBParameters"arg(1));
if (Defaults="") then Defaults="0 0 0"
Parse Var Defaults Hue Saturation Brightness
Gadget.1 = 'I/100/16/Hue:/'Hue
Gadget.2 = 'I/100/30/Saturation:/'Saturation
Gadget.3 = 'I/100/44/Brightness:/'Brightness
ComplexRequest '"HSB Adjustments (-127 to 127)"' 3 Gadget 300 80
IF rc ~= 0 THEN return 10
Defaults=Result.1 Result.2 Result.3
call SetClip("ImpAdjustHSBParameters"arg(1), Defaults);